package biz.impl;

import java.util.List;

import biz.NewsBiz;
import dao.NewsDao;
import dao.impl.NewsDaoImpl;
import entity.News;

public class NewsBizImpl implements NewsBiz{
	NewsDao nd = new NewsDaoImpl();
	@Override
	public List<News> getAllNews() {
		return nd.getAllNews();
	}
	@Override
	public void deletenews(int id) {
		nd.deletenews(id);
		
	}
	@Override
	public void addNews(News n) {
		nd.addNews(n);
		
	}
	@Override
	public List<News> getNewsBySearch(String s) {
		return nd.getNewsBySearch(s);
	}
	@Override
	public News getNewsById(int id) {
		return nd.getNewsById(id);
	}
	@Override
	public void updateNews(News n) {
		nd.updateNews(n);
		
	}

}
